package com.om.app;

import com.om.data.DataManager;
import android.app.Application;

public class OMApplication extends Application {
	
	private static OMApplication s_app = null;
	private DataManager dataManager;

	public static OMApplication getInstace(){
		return s_app;
	}
	
	public OMApplication() {
		super();
	}
	
	@Override
	public void onCreate() {
		super.onCreate();
		DataManager.setContext(this);
		dataManager = DataManager.getInstance();
		dataManager.initQuestions();
		s_app = this;
		
	}
	@Override
	public void onTerminate() {
		System.out.println("terminated was called!");
		s_app = null;
		dataManager.onDestroy();
		super.onTerminate();
	}
	
	@Override
	public void onLowMemory() {
		super.onLowMemory();
	}

}
